#ifndef __UPGRADE_CORE__
#define __UPGRADE_CORE__

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif


typedef enum {
    UPGRADE_SUCCESS = 0,
    UPGRADE_READ_CONFIG_FAILURE    = -1,
    UPGRADE_GET_FIRMWARE_VERSION_FAILURE    = -2,
    UPGRADE_APP_TO_BOOT_FAILURE    = -3,
    UPGRADE_GET_FIRMWARE_FAILURE    = -4,
    UPGRADE_FAILURE    = -10,
    UPGRADE_NO_NEED    = -11,//不需要升级
    UPGRADE_NEED    = -12,//需要升级
} ofp_upgrade_result;




#ifdef __cplusplus
}
#endif

#endif
